home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / perl / tzfile.ph < prev    next >
Text File  |  1991-08-11  |  1KB  |  49 lines

  1. sub TZDIR {"/etc/zoneinfo";}
  2. sub TZDEFAULT {"localtime";}
  3. sub TZ_MAX_TIMES {370;}
  4. sub NOSOLAR {1;}
  5. if (!defined &NOSOLAR) {
  6.     eval 'sub TZ_MAX_TYPES {256;}';
  7. }
  8. else {
  9.     eval 'sub TZ_MAX_TYPES {10;}';
  10. }
  11. sub TZ_MAX_CHARS {50;}
  12. sub SECS_PER_MIN {60;}
  13. sub MINS_PER_HOUR {60;}
  14. sub HOURS_PER_DAY {24;}
  15. sub DAYS_PER_WEEK {7;}
  16. sub DAYS_PER_NYEAR {365;}
  17. sub DAYS_PER_LYEAR {366;}
  18. sub SECS_PER_HOUR {( &SECS_PER_MIN *  &MINS_PER_HOUR);}
  19. sub SECS_PER_DAY {(('long')  &SECS_PER_HOUR *  &HOURS_PER_DAY);}
  20. sub MONS_PER_YEAR {12;}
  21. sub TM_SUNDAY {0;}
  22. sub TM_MONDAY {1;}
  23. sub TM_TUESDAY {2;}
  24. sub TM_WEDNESDAY {3;}
  25. sub TM_THURSDAY {4;}
  26. sub TM_FRIDAY {5;}
  27. sub TM_SATURDAY {6;}
  28. sub TM_JANUARY {0;}
  29. sub TM_FEBRUARY {1;}
  30. sub TM_MARCH {2;}
  31. sub TM_APRIL {3;}
  32. sub TM_MAY {4;}
  33. sub TM_JUNE {5;}
  34. sub TM_JULY {6;}
  35. sub TM_AUGUST {7;}
  36. sub TM_SEPTEMBER {8;}
  37. sub TM_OCTOBER {9;}
  38. sub TM_NOVEMBER {10;}
  39. sub TM_DECEMBER {11;}
  40. sub TM_SUNDAY {0;}
  41. sub TM_YEAR_BASE {1900;}
  42. sub EPOCH_YEAR {1970;}
  43. sub EPOCH_WDAY { &TM_THURSDAY;}
  44. sub isleap {
  45.     local($y) = @_;
  46.     eval "((($y) % 4) == 0 && (($y) % 100) != 0 || (($y) % 400) == 0)";
  47. }
  48. 1;
  49.